package com.itgone.common;

public class MallAPI {

    public static final String API_BASE = "http://192.168.1.12:8080/mmall";
//    public static final String API_BASE = "http://192.168.31.173:8080/mmall";
//    public static final String API_BASE = "http://www.itgone.com/mmall";

    public interface UserAPI {
        String MODULE_NAME = "/user";

        String LOGIN = API_BASE + MODULE_NAME + "/login.do";
        String LOGOUT = API_BASE + MODULE_NAME + "/logout.do";
        String REGISTER = API_BASE + MODULE_NAME + "/register.do";
        String CHECK_VALID = API_BASE + MODULE_NAME + "/check_valid.do";
        String GET_USER_INFO = API_BASE + MODULE_NAME + "/get_user_info.do";
        String RESET_PASSWORD = API_BASE + MODULE_NAME + "/reset_password.do";
        String GET_INFORMATION = API_BASE + MODULE_NAME + "/get_information.do";
        String UPDATE_INFORMATION = API_BASE + MODULE_NAME + "/update_information.do";
        String FORGET_GET_QUESTION = API_BASE + MODULE_NAME + "/forget_get_question.do";
        String FORGET_CHECK_ANSWER = API_BASE + MODULE_NAME + "/forget_check_answer.do";
        String FORGET_RESET_PASSWORD = API_BASE + MODULE_NAME + "/forget_reset_password.do";
    }

    public interface  ProductAPI{
        String MODULE_NAME = "/product";

        String LIST = API_BASE + MODULE_NAME + "/list.do";
        String DETAIL = API_BASE + MODULE_NAME + "/detail.do";
    }
}
